#!/usr/bin/python3

username = input("plese input username:")
f = open('/etc/passwd','r')
user = [i for i in f if i.split(":")[0] == username]
f.close()

if len(user) > 0:
    print ("user %s exist" % username)
else:
    print ("user %s not exist" % username)
